package com.ruoyi.system.domain.supe;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 平台优惠卷对象 platform_coupon
 * 赵德健
 * @author ruoyi
 * @date 2020-12-18
 */
public class PlatformCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 平台优惠卷ID */
    private Integer platformId;

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private Integer supplierId;

    /** 平台优惠卷名称 */
    @Excel(name = "平台优惠卷名称")
    private String platformName;

    /** 平台优惠卷价格 */
    @Excel(name = "平台优惠卷价格")
    private Long platformPrice;

    /** 满减使用价格 */
    @Excel(name = "满减使用价格")
    private Long platformPriceMost;

    /** 优惠卷开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "优惠卷开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date platformTimeStart;

    /** 优惠卷结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "优惠卷结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date platformTimeEnd;

    /** 类型 */
    @Excel(name = "类型")
    private String platformType;

    /** 0 启用 1 禁用 */
    @Excel(name = "0 启用 1 禁用")
    private String platformState;

    /** 备用 */
    @Excel(name = "备用")
    private String platformRemark;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifiedTime;

    public void setPlatformId(Integer platformId)
    {
        this.platformId = platformId;
    }

    public Integer getPlatformId()
    {
        return platformId;
    }
    public void setSupplierId(Integer supplierId)
    {
        this.supplierId = supplierId;
    }

    public Integer getSupplierId()
    {
        return supplierId;
    }
    public void setPlatformName(String platformName)
    {
        this.platformName = platformName;
    }

    public String getPlatformName()
    {
        return platformName;
    }
    public void setPlatformPrice(Long platformPrice)
    {
        this.platformPrice = platformPrice;
    }

    public Long getPlatformPrice()
    {
        return platformPrice;
    }
    public void setPlatformPriceMost(Long platformPriceMost)
    {
        this.platformPriceMost = platformPriceMost;
    }

    public Long getPlatformPriceMost()
    {
        return platformPriceMost;
    }
    public void setPlatformTimeStart(Date platformTimeStart)
    {
        this.platformTimeStart = platformTimeStart;
    }

    public Date getPlatformTimeStart()
    {
        return platformTimeStart;
    }
    public void setPlatformTimeEnd(Date platformTimeEnd)
    {
        this.platformTimeEnd = platformTimeEnd;
    }

    public Date getPlatformTimeEnd()
    {
        return platformTimeEnd;
    }
    public void setPlatformType(String platformType)
    {
        this.platformType = platformType;
    }

    public String getPlatformType()
    {
        return platformType;
    }
    public void setPlatformState(String platformState)
    {
        this.platformState = platformState;
    }

    public String getPlatformState()
    {
        return platformState;
    }
    public void setPlatformRemark(String platformRemark)
    {
        this.platformRemark = platformRemark;
    }

    public String getPlatformRemark()
    {
        return platformRemark;
    }
    public void setModifiedTime(Date modifiedTime)
    {
        this.modifiedTime = modifiedTime;
    }

    public Date getModifiedTime()
    {
        return modifiedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("platformId", getPlatformId())
                .append("supplierId", getSupplierId())
                .append("platformName", getPlatformName())
                .append("platformPrice", getPlatformPrice())
                .append("platformPriceMost", getPlatformPriceMost())
                .append("platformTimeStart", getPlatformTimeStart())
                .append("platformTimeEnd", getPlatformTimeEnd())
                .append("platformType", getPlatformType())
                .append("platformState", getPlatformState())
                .append("platformRemark", getPlatformRemark())
                .append("modifiedTime", getModifiedTime())
                .toString();
    }


}
